import React from 'react'
import { DatePicker } from 'antd';
export default class Home extends React.Component {
    constructor(props) {
        super(props)
        //初始化state
        this.state = {
            params:this.props.match.params
        };
    }


    //默认属性
    static defaultProps = {}

    render() {
        //获取路径参数
        console.log(this.props.match.params);
        console.log(this.state.params);
        return <div>
            <h1>首页</h1>
            <DatePicker/>
        </div>
    }
}



